package com.ruoyi.order.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 移动点餐信息对象 order_fulfill_info
 *
 * @author HYANFENG
 * @date 2021-03-17
 */
@TableName("order_fulfill_info")
public class OrderFulfillInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id")
    private Long id;
    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;
    /** 履约类型，SELF（⾃ 取）、DELIVER（配 送） */
    @Excel(name = "履约类型，SELF", readConverterExp = "⾃=,取=")
    private String fulfillType;
    /** 履约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "履约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date fulfillTime;
    /** 履约地点 */
    @Excel(name = "履约地点")
    private String fulfillPlace;

    private String fulfillCode;
    private String fulfillStatus;
    private String appointFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setFulfillType(String fulfillType)
    {
        this.fulfillType = fulfillType;
    }

    public String getFulfillType()
    {
        return fulfillType;
    }
    public void setFulfillTime(Date fulfillTime)
    {
        this.fulfillTime = fulfillTime;
    }

    public Date getFulfillTime()
    {
        return fulfillTime;
    }
    public void setFulfillPlace(String fulfillPlace)
    {
        this.fulfillPlace = fulfillPlace;
    }

    public String getFulfillPlace()
    {
        return fulfillPlace;
    }

    public String getFulfillCode() {
        return fulfillCode;
    }

    public void setFulfillCode(String fulfillCode) {
        this.fulfillCode = fulfillCode;
    }

    public String getFulfillStatus() {
        return fulfillStatus;
    }

    public void setFulfillStatus(String fulfillStatus) {
        this.fulfillStatus = fulfillStatus;
    }

    public String getAppointFlag() {
        return appointFlag;
    }

    public void setAppointFlag(String appointFlag) {
        this.appointFlag = appointFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("fulfillType", getFulfillType())
            .append("fulfillTime", getFulfillTime())
            .append("fulfillPlace", getFulfillPlace())
            .toString();
    }
}
